package lab02.test02;

public class Cirlie {
    float r;
    double pi;

    double area(){
        return pi*r*r;
    }
    double length(){
        return 2*pi*r;
    }

    @Override
    public String toString() {
        return "面积："+area()+"\t"+"周长："+length();
    }
}

